package gdonly.top.signin.entity;

/**
 * Created by zhuzhuxia on 2017/4/27.
 */
public class User implements CharSequence{

    private String id;
    private String name;
    private String classId;
    private int signed;//是否已经签到
    private int position;//身份
    private String mac;//wifi 的 mac 地址
    private String ssid;//wifi ap 的 ssid
    private boolean signEnable;//现在能否签到

    public final static int MONITOR_CODE = 1;
    public final static int STUDENT_CODE = 0;

    private final static int SIGNED_DONE = 1;

    public void setMac(String mac) {
        this.mac = mac;
    }

    public void setSsid(String ssid) {
        this.ssid = ssid;
    }

    public void setSign(boolean signEnable) {
        this.signEnable = signEnable;
    }

    public boolean isSign() {

        return signEnable;
    }

    public String getSsid() {
        return ssid;
    }

    public String getMac() {
        return mac;
    }


//    private final static int

    public void setId(String id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setSigned(int signed) {
        this.signed = signed;
    }

    public void setPosition(int position) {
        this.position = position;
    }

    public String getId() {

        return id;
    }

    public String getName() {
        return name;
    }

    public int getSigned() {
        return signed;
    }

    public int getPosition() {
        return position;
    }
    public boolean isMonitor(){
        if(position == MONITOR_CODE){
            return true;
        }
        return false;
    }

    public void setClassId(String classId) {
        this.classId = classId;
    }
    public String getClassId() {
        return classId;
    }

    @Override
    public int length() {
        return 0;
    }

    @Override
    public char charAt(int index) {
        return 0;
    }

    @Override
    public CharSequence subSequence(int start, int end) {
        return null;
    }
}
